<#assign jsversion=7
		cssversion=7
		ueditor="ueditor_1_2_0-utf8" />
<#include "util/macro.ftl">
<#include "util/function.ftl">
<#--<@compresscn>-->
<#escape x as x?html>
<!DOCTYPE html>
<html>
	<head>
		<title>${title?default("")} - ${(setting.spaceName)?default("")}</title>
		<meta name="description" content="${(setting.description)?default("")},${description?default("")}" />
		<meta name="keywords" content="${keywords?default("")}" />
		<meta name="author" content="${author?default("")}">
		<meta http-equiv="Content-Language" content="zh-CN">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="shortcut icon" href="/static/image/favicon.jpg" />
		<link rel="alternate" type="application/rss+xml" href="${blogLink}/rss">
		<#include "util/css.ftl">
	</head>
	<body>
		<div class="yui3-g container" id="${pageName}">
		  <div class="yui3-u-1 md" id="header"><#include "header.ftl"></div>
		  <div class="yui3-g" id="content">
			<div class="yui3-u-17-24" id="main"><#include "${pageName}.ftl"></div>
			<div class="yui3-u-7-24"><div id="sub"><#include "sidebar.ftl"></div></div>
		  </div>
		  <div class="yui3-u-1" id="footer"><#include "footer.ftl"></div>
		</div>
		<script>
			var userInfo = {
				isAdmin:${isAdmin?string}
			};
		</script>
		<#include "util/js.ftl">
	</body>
	<#if !isAdmin && isOnlineEnv>
	<script type="text/javascript">
	//google Analytics
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-30491994-1']);
	  _gaq.push(['_trackPageview']);
	  (function() {
	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	  
	  //baidu Analytics
	  var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	  document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F490b3c5a0b2cc164aaa5ab1d800c309d' type='text/javascript'%3E%3C/script%3E"));
	</script>
	</#if>
</html>
</#escape>
<#--</@compresscn>-->
